# import socket,ssl,sys

# HOST, PORT = '127.0.0.1', 4443
# REQUESTSTR="POST / HTTP/1.1\r\nHost:xx\r\nConnection: close\r\n\r\n"

# print ("Creating socket..."),
# sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# print ("done.")
 
# wrappedSocket = ssl.wrap_socket(sock, keyfile=None, certfile=None, server_side=False, cert_reqs=ssl.CERT_NONE, ssl_version=ssl.PROTOCOL_SSLv23)
 
# print ("Connecting to remote host..."),
# wrappedSocket.connect((HOST, PORT))
# print ("done.")
 
# print ("Requesting document..."),
# wrappedSocket.sendall(bytes(REQUESTSTR,encoding="utf8"))
# print ("done.")
 
# while True:
#     buf = wrappedSocket.recv(4096)
#     print (buf)
#     if not buf:
#         wrappedSocket.close()
#         break


#coding:utf-8
import requests
import json
import numpy as np
import cv2
import base64
import matplotlib.pyplot as plt
from PIL import Image
requests.packages.urllib3.disable_warnings()
res=requests.post('https://127.0.0.1:4443/',verify=False) #通过内网透传分配的ip+端口
print(res.text)
